const obj = {
    name:1,
};
let obj1 = {}
for (let key in obj){
    obj1[key] = obj[key]
}
console.log(obj1)
obj1 = {...obj}